package org.swingplus.core.scanner;

import org.swingplus.core.util.AnnoManageUtil;

import java.lang.annotation.Annotation;

public class ApplicationScan extends ComponentScan{

//    @Override
    public static Annotation[] applicationScan(Class<?> clazz){
//        Annotation[] annotations =super.scan(clazz);

        Annotation[] annotations = AnnoManageUtil.annotationsType(clazz);

        for (int i = 0; i <annotations.length ; i++) {
            Annotation annotation=annotations[i];
            String annotationName=annotation.annotationType().getName();
            if(annotationName.equals("org.swingplus.core.annotation.Application")){

            }
        }

        return annotations;
//        annotations.


       //TODO Datasource





//        Annotation[] annotations = AnnoManageUtil.annotationsType(clazz);
//        System.out.println(annotations[0].annotationType().getName());

    }


}
